﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Classified/Cld-Menu.master" AutoEventWireup="true" CodeFile="Cld-Contact-Ad.aspx.cs" Inherits="dealer" %>

<%@ Register Src="~/Classified/UserControls/Cld-List.ascx" TagName="AdList" TagPrefix="control" %>
<%@ Register Src="~/Classified/UserControls/Cld-SearchControl.ascx" TagName="Search" TagPrefix="control" %>
<%@ Register Src="~/UserControls/User-Login.ascx" TagName="Login" TagPrefix="control" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="headSubMaster" Runat="Server">
<script type="text/javascript">
    function CheckEmail(val) { 
        var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
        if (val != '') {
            if (reg.test(val) == false) {
                document.getElementById('ContentPlaceHolder1_ContentPlaceHolder_SubMaster_lblMsg').innerHTML = 'Please Enter Valid Email';
            }
            else {
                document.getElementById('ContentPlaceHolder1_ContentPlaceHolder_SubMaster_lblMsg').innerHTML = '';

            }
        }
        else {
            document.getElementById('ContentPlaceHolder1_ContentPlaceHolder_SubMaster_txtEmail').value = 'Your Email';
        } 
    }

</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder_SubMaster" Runat="Server">

 <div class="clear mt20px"></div>

<section>
	
    <div class="column_left">
    	<h1>Dealer Information</h1>
        <div class="detail">         
       		 <asp:Image ID="imgUser" runat="server"  Height="100" Width="100" CssClass="delareimg" AlternateText="no-image"/>       
             <p><span class="bold">Contact Name : </span> <asp:Label ID="lblName" runat="server"></asp:Label>     </p>
             <p id="pMobile" runat="server" visible="false"><span class="bold">Phone :</span> <asp:Label ID="lblPhone" runat="server"></asp:Label></p>
             <p><span class="bold">Email : </span> <a href="#"><asp:Label ID="lblEMail" runat="server"></asp:Label></a></p>
             <%--<p><span class="bold">Website/facebook : </span><a href="#">http://abcd.com</a></p>--%>
        </div>
         <div class="clear"></div>
<p> <%=desc %></p>
    </div>
    <asp:UpdatePanel runat="server" ID="sdfsd"> <ContentTemplate>

   <asp:Panel ID="pnlContact" runat="server" DefaultButton="btnSubmit">
    <div class="column_right">
    	<h1 class="mb20px ml8px">Contact Dealer</h1>
    	<asp:TextBox ID="txtFName" runat="server" CssClass="input_size" onblur="javaScript: if (this.value=='') {this.value='Your Name';}" onfocus="javaScript: if (this.value=='Your Name') {this.value='';}" ></asp:TextBox>
         <asp:TextBox ID="txtEmail" runat="server" CssClass="input_size"  onblur="CheckEmail(this.value);"  onfocus="javaScript: if (this.value=='Your Email') {this.value='';}" ></asp:TextBox>    
        <div class="clear"></div>
   		 <p class="message">Message</p>  
         <asp:TextBox ID="txtMessage" runat="server" CssClass="text_area" TextMode="MultiLine"></asp:TextBox> 
   		 <p class="fr mt15px">         
         &nbsp; <asp:Label ID="lblMsg" runat="server" ForeColor="Red" EnableViewState="false" ></asp:Label> 
         <asp:ImageButton ID="btnSubmit" runat="server" ImageUrl="images/submit.jpg" 
                 height="31" width="101" border="0" onclick="btnSubmit_Click"/>

         <span class="ml10px">
         <asp:ImageButton ID="imgSubmitContact" runat="server" ImageUrl="images/cancel.jpg" 
                 height="30" width="100" border="0" onclick="ImageButton1_Click"/>
         </span>
         </p>      
    </div>	
    </asp:Panel>     	</ContentTemplate> </asp:UpdatePanel>
	<div class="clear"></div>    
    <h2 class="h2">Dealer's Product</h2>
    <div class="left_column">   
    <control:AdList ID="adList1" runat="server" />
</div>      
    <div class="right_column">
    <control:Login ID="Login1" runat="server" />
    	<control:Search ID="Login2" runat="server" />
    	   
        <div class="clear"></div>         
      <%--  <div class="mb20px" style="line-height:1px;"><img src="images/lumia.png" height="175" width="279" border="0"></div> 
        
        <div class="pb0px refine_search_box">
        <img src="images/dog.jpg" height="138" width="131" border="0" align="left">
        <h3 class="mt15px mb5px">Pet's Eye View</h3>
        <p class="txcenter">say in the construction trade. San Diego's skyline was thrown a distinctive curve this week, when the new   when the new Central Library.</p>
        
        </div>--%>
    </div>        
	<div class="clear"></div> 
</section>

</asp:Content>

